<?php
include_once('admin-load.php');

if (isset($_POST['submit_form'])) {
    save_consignee();
}
?> 
<?php
include_once 'header.php';
?>
<div id="main_content">
    <div id="content">

    </div>
    <div class="container">
        <h5>Create New Consignee</h5>

    </div>
    <div id="main">
        <h2>Create New Consignee</h2>
        <form id="add_user" action="consignee-add.php" method="post">
            <input type="hidden" value="<?php ?>" name="user_id"/>
            <input type="hidden" value="1" name="submit_form"/>
            <fieldset>
                <legend>Consignee</legend>
                <div>
                    <label for="username">Receive Name : </label>
                    <input type="text" id="username" name="receivename" value=""/>
                </div>
                <div>
                    <label for="phone">Phone : </label>
                    <input type="text" id="phone" name="phone" value=""/>
                </div>
                <div>
                    <label for="fax">Fax : </label>
                    <input type="text" id="fax" name="fax" value=""/>
                </div>
                <div>
                    <label for="country">Country : </label>
                    <?php echo countrySelect ($consignee->country) ?>
                </div>
                <div>
                    <label for="zip">Zip : </label>
                    <input type="text" id="zip" name="zip" value=""/>
                </div>

                <div class="buttons">
                    <input type="submit" value="Save" name="submit"/>   
                </div>
                </div>

        </form>

    </div>
    <?php
    include_once 'footer.php';
    ?>